<!DOCTYPE HTML>
<html lang="en-US">
<head>
	<meta charset="UTF-8">
	<title>添加商品类型</title>
	<hdjs/>
	<js file="__CONTROL_TPL__/Js/field.js">
</head>
<body>
	<div class="menu_list">
		<ul>
			<li><a href="{|U:'GoodsType/index'}" >商品类型</a></li>
			<li><a href="{|U:add,array('gt_id'=>$_GET['gt_id'])}" class="action">添加属性</a></li>
			<li><a href="{|U:dataCatch}">更新栏目缓存</a></li>
		</ul>
	</div>

	
	<form action="" method="post">
		<input type="hidden" name="ac_id" value="{$attrClassData[0]['ac_id']}">
		<input type="hidden" name="show_type" id="" value="{$attrClassData[0]['show_type']}">
		<input type="hidden" name="gt_id" id="" value="{$_GET['gt_id']}">

		<div class="title-header">添加商品属性</div>
		<table class="table1 hd-form">
			<tr>
				<th class="w100">属性名</th>
				<td><input type="text" name="attr_name" style="heigth:30px;" value="{$attrClassData[0]['attr_name']}"></td>
			</tr>
			<tr>
				<th class="w50">类型</th>
				<td>
				
					<input type="radio" name="is_spec" value="0" <if value="{$attrClassData[0].is_spec} eq 0"> checked=""</if>> 普通属性 
					<input type="radio" name="is_spec" value="1" <if value="{$attrClassData[0].is_spec} eq 1"> checked=""</if>> 规格
				</td>
			</tr>
			
		</table>
		<?php require $FieldTpl;?>

		<div id="showField"></div>
		<input type="submit" value="添加" name="submit" class="hd-success position-bottom" style="margin-left:30px;">
	</form>
	
</body>
</html>